<div class="widget-add-breadcrumb">
    <nz-breadcrumb nzSeparator=">" nzAutoGenerate="true"></nz-breadcrumb>
</div>

<form nz-form [formGroup]="validateForm" *ngIf="validateForm">
    <nz-form-item>
        <nz-form-label nzFor="name" nzSpan="6" nzRequired>种族</nz-form-label>
        <nz-form-control nzSpan="14" nzErrorTip="种族不能为空">
            <input nz-input id="name" formControlName="name">
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label nzFor="address" nzSpan="6" nzRequired>主城</nz-form-label>
        <nz-form-control nzSpan="14" nzErrorTip="主城不能为空">
            <input nz-input id="address" formControlName="address">
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label nzFor="hero" nzSpan="6" nzRequired>英雄</nz-form-label>
        <nz-form-control nzSpan="14" nzErrorTip="英雄不能为空">
            <input nz-input id="hero" formControlName="hero">
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label nzFor="text" nzSpan="6" nzRequired>简介</nz-form-label>
        <nz-form-control nzSpan="14" nzErrorTip="简介不能为空">
            <input nz-input id="text" formControlName="text">
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label nzFor="status" nzSpan="6" nzRequired>状态</nz-form-label>
        <nz-form-control nzSpan="14" nzErrorTip="状态不能为空">
            <nz-radio-group id="status" formControlName="status">
                <label nz-radio nzValue="A">活动</label>
                <label nz-radio nzValue="D">禁用</label>
            </nz-radio-group>
        </nz-form-control>
    </nz-form-item>
</form>

<div class="widget-add-footer">
    <nz-space>
        <nz-space-item>
            <button nz-button [nzType]="'primary'" (click)="cancelHandle()">取消</button>
        </nz-space-item>
        <nz-space-item>
            <button nz-button [nzType]="'primary'" (click)="saveHandle()">保存</button>
        </nz-space-item>
    </nz-space>
</div>